package org.source.test;

//事件回调处理类，是回调的具体实现，客户端引用，常用匿名来实现
public class EventCallback implements EventDefinition{
	private String name;
    public EventCallback(String name){
        this.name = name;
    }
    //回调方法
    public void interestingEvent(String event) {
        System.out.println(name + ":[" +event  + "] happened");
    }
}

